package com.zl.csMall.mine.notice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zl.csMall.mine.notice.po.Notice;

public interface NoticeService extends IService<Notice> {

    /**
     * @description: 查询全部消息通知
     * @author ChenNing
     * @date: 2025-10-24 11:11
     */
    Page<Notice> getAll(Page<Notice> page);

    /**
     * @description: 新增发货通知
     * @param userId 下单人用户ID
     * @param commodityId 商品ID
     * @param recAddressId 收货地址ID
     * @param orderId 订单ID
     * @return: 操作结果
     * @author ChenNing
     * @date: 2025-10-24 11:26
     */
    boolean addNotice(long userId, long commodityId, long recAddressId, long orderId);

    /**
     * @description: 根据订单ID删除发货通知
     * @param orderId 订单ID
     * @return: 操作结果
     * @author ChenNing
     * @date: 2025-10-24 11:32
     */
    boolean deleteShipmentNotice(long orderId);

}
